package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ShiQiaoUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shi_qiao_user", catalog = "hospital")
public class ShiQiaoUser implements java.io.Serializable {

	// Fields

	private ShiQiaoUserId id;
	private Long version;
	private String sex;
	private String doctorId;
	private String name;
	private String brith;
	private String sendDoctor;

	// Constructors

	/** default constructor */
	public ShiQiaoUser() {
	}

	/** minimal constructor */
	public ShiQiaoUser(ShiQiaoUserId id, Long version, String doctorId,
			String brith) {
		this.id = id;
		this.version = version;
		this.doctorId = doctorId;
		this.brith = brith;
	}

	/** full constructor */
	public ShiQiaoUser(ShiQiaoUserId id, Long version, String sex,
			String doctorId, String name, String brith, String sendDoctor) {
		this.id = id;
		this.version = version;
		this.sex = sex;
		this.doctorId = doctorId;
		this.name = name;
		this.brith = brith;
		this.sendDoctor = sendDoctor;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "sampleId", column = @Column(name = "sample_id", nullable = false)),
			@AttributeOverride(name = "date", column = @Column(name = "date", nullable = false)) })
	public ShiQiaoUserId getId() {
		return this.id;
	}

	public void setId(ShiQiaoUserId id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "sex")
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "doctor_id", nullable = false)
	public String getDoctorId() {
		return this.doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "brith", nullable = false)
	public String getBrith() {
		return this.brith;
	}

	public void setBrith(String brith) {
		this.brith = brith;
	}

	@Column(name = "send_doctor")
	public String getSendDoctor() {
		return this.sendDoctor;
	}

	public void setSendDoctor(String sendDoctor) {
		this.sendDoctor = sendDoctor;
	}

}